//obpm项目名配置
var pathName = document.location.pathname;
var index = pathName.substr(1).indexOf("/");
var obpmFilePath = pathName.substr(0, index + 1);
if (obpmFilePath == '') {
  obpmFilePath = "/obpm"
}
var magicPath = "/magic-static";
var magicUrl = pathName.split(magicPath)[1];
var magicIndex = magicUrl.substr(1).indexOf("/");
var qmsPath = magicUrl.substr(0, magicIndex + 1);
if (qmsPath == '') {
  qmsPath = "/qms"
}

//static项目名配置
var staticContextPath = "/static";
var contentPath = obpmFilePath + magicPath + qmsPath;
require.config({
  // urlArgs: "_=" + (new Date()).getTime(),  //取消注释可以为js清楚缓存，仅在调试时使用，生产环境应注销
  baseUrl: contentPath + "/js/", //针对非单页面处理
  paths: {
    "jquery": "lib/jquery-1.11.3.min",
    "api": "util/obpm.api",
    "common": 'util/obpm.common',
    "template": "lib/template",
    "pagination": "lib/jquery.pagination/jquery.pagination",
    "nicescroll": "lib/jquery.nicescroll",
  },
});